package com.tony.mindhr.mapper;

import com.tony.mindhr.model.Position;
import com.tony.mindhr.model.RespBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Title: PositionMapper
 * @Auther: 皮蛋布丁
 * @Date: 2021/04/19/14:12
 * @Description:
 */
public interface PositionMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(Position record);

    int insertSelective(Position record);

    Position selectByPrimaryKey(Integer id);

    /**
    * @Description: updateByPrimaryKeySelective 根据传入的字段进行更新
    * @Param: [record]
    * @return: int
    * @Author: 皮蛋布丁
    * @Date: 2021/5/19 22:27
    */
    int updateByPrimaryKeySelective(Position record);

    int updateByPrimaryKey(Position record);

    List<Position> getAllPositions();

    /**
    * @Description: deletePositionByIds 批量删除
    * @Param: [ids]
    * @return: java.lang.Integer
    * @Author: 皮蛋布丁
    * @Date: 2021/5/27 21:36
    */
    Integer deletePositionByIds(@Param("ids") Integer[] ids);
}
